Merge branch 'master' of gitorious.org:f-droid/fdroidclient
This commit is contained in:
commit
79b789d2c0
@ -65,6 +65,7 @@
|
||||
android:id="@android:id/list"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_weight="0.5" />
|
||||
android:layout_weight="0.5"
|
||||
android:scrollbars="none" />
|
||||
|
||||
</LinearLayout>
|
||||
|
@ -62,6 +62,7 @@
|
||||
<ListView
|
||||
android:id="@android:id/list"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent" />
|
||||
android:layout_height="fill_parent"
|
||||
android:scrollbars="none" />
|
||||
|
||||
</LinearLayout>
|
||||
|
@ -14,6 +14,8 @@
|
||||
android:scaleType="fitCenter"
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="50dp"
|
||||
android:layout_marginRight="2dp"
|
||||
android:layout_marginEnd="2dp"
|
||||
android:padding="4dp"/>
|
||||
|
||||
<LinearLayout android:id="@+id/status_icons"
|
||||
@ -51,9 +53,7 @@
|
||||
android:layout_toLeftOf="@id/status_icons"
|
||||
android:layout_toStartOf="@id/status_icons"
|
||||
android:paddingTop="4dp"
|
||||
android:paddingBottom="2dp"
|
||||
android:paddingLeft="1dp"
|
||||
android:paddingStart="1dp"/>
|
||||
android:paddingBottom="2dp" />
|
||||
|
||||
<TextView android:id="@+id/license"
|
||||
android:textSize="12sp"
|
||||
|
@ -181,8 +181,10 @@ public class AppDetails extends ListActivity {
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
|
||||
super.onCreate(savedInstanceState);
|
||||
if (Utils.hasApi(11))
|
||||
if (Utils.hasApi(11)) {
|
||||
getActionBar().setDisplayShowTitleEnabled(false);
|
||||
getActionBar().setDisplayHomeAsUpEnabled(true);
|
||||
}
|
||||
|
||||
setContentView(R.layout.appdetails);
|
||||
|
||||
@ -546,8 +548,8 @@ public class AppDetails extends ListActivity {
|
||||
toShow.add(menu.add(Menu.NONE, INSTALL, 1, R.string.menu_install).setIcon(
|
||||
android.R.drawable.ic_menu_add));
|
||||
} else {
|
||||
menu.add(Menu.NONE, UNINSTALL, 1, R.string.menu_uninstall).setIcon(
|
||||
android.R.drawable.ic_menu_delete);
|
||||
toShow.add(menu.add(Menu.NONE, UNINSTALL, 1, R.string.menu_uninstall).setIcon(
|
||||
android.R.drawable.ic_menu_delete));
|
||||
|
||||
if (mPm.getLaunchIntentForPackage(app.id) != null) {
|
||||
toShow.add(menu.add( Menu.NONE, LAUNCH, 1, R.string.menu_launch ).setIcon(
|
||||
|
@ -131,12 +131,7 @@ public class SearchResults extends ListActivity {
|
||||
for (DB.App app : apps) {
|
||||
applist.addItem(app);
|
||||
}
|
||||
if (Utils.hasApi(11)) {
|
||||
getListView().setFastScrollAlwaysVisible(true);
|
||||
getListView().setScrollBarStyle(View.SCROLLBARS_INSIDE_INSET);
|
||||
} else {
|
||||
getListView().setFastScrollEnabled(true);
|
||||
}
|
||||
getListView().setFastScrollEnabled(true);
|
||||
applist.notifyDataSetChanged();
|
||||
setListAdapter(applist);
|
||||
|
||||
|
@ -115,6 +115,7 @@ abstract public class AppListAdapter extends BaseAdapter {
|
||||
else
|
||||
summaryLayout.addRule(RelativeLayout.RIGHT_OF, R.id.icon);
|
||||
summary.setLayoutParams(summaryLayout);
|
||||
summary.setPadding(0,0,0,0);
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -49,12 +49,7 @@ abstract class AppListFragment extends Fragment implements AdapterView.OnItemCli
|
||||
|
||||
protected ListView createAppListView() {
|
||||
ListView list = new ListView(getActivity());
|
||||
if (Utils.hasApi(11)) {
|
||||
list.setFastScrollAlwaysVisible(true);
|
||||
list.setScrollBarStyle(View.SCROLLBARS_INSIDE_INSET);
|
||||
} else {
|
||||
list.setFastScrollEnabled(true);
|
||||
}
|
||||
list.setVerticalScrollBarEnabled(false);
|
||||
list.setOnItemClickListener(this);
|
||||
list.setAdapter(getAppListAdapter());
|
||||
return list;
|
||||
|
Loading…
x
Reference in New Issue
Block a user