preferences layout: remove unnecessary dp height

add matching material overflow icon for headlines list
This commit is contained in:
Andrew Dolgov 2015-06-08 16:20:40 +03:00
parent 89baa99ea5
commit 6ab91236b4
22 changed files with 20 additions and 23 deletions

View File

@ -18,13 +18,11 @@ import android.view.ContextMenu.ContextMenuInfo;
import android.view.LayoutInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.AdapterView.AdapterContextMenuInfo;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ArrayAdapter;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;
@ -487,7 +485,7 @@ public class FeedCategoriesFragment extends BaseFeedlistFragment implements OnIt
tu.setVisibility((cat.unread > 0) ? View.VISIBLE : View.INVISIBLE);
}
ImageButton ib = (ImageButton) v.findViewById(R.id.feed_menu_button);
/*ImageButton ib = (ImageButton) v.findViewById(R.id.feed_menu_button);
if (ib != null) {
ib.setOnClickListener(new OnClickListener() {
@ -496,7 +494,7 @@ public class FeedCategoriesFragment extends BaseFeedlistFragment implements OnIt
getActivity().openContextMenu(v);
}
});
}
} */
return v;

View File

@ -25,7 +25,6 @@ import android.widget.AdapterView;
import android.widget.AdapterView.AdapterContextMenuInfo;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ArrayAdapter;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;
@ -679,7 +678,7 @@ public class FeedsFragment extends BaseFeedlistFragment implements OnItemClickLi
tu.setVisibility((feed.unread > 0) ? View.VISIBLE : View.INVISIBLE);
}
ImageButton ib = (ImageButton) v.findViewById(R.id.feed_menu_button);
/*ImageButton ib = (ImageButton) v.findViewById(R.id.feed_menu_button);
if (ib != null) {
ib.setOnClickListener(new OnClickListener() {
@ -688,7 +687,7 @@ public class FeedsFragment extends BaseFeedlistFragment implements OnItemClickLi
getActivity().openContextMenu(v);
}
});
}
}*/
return v;
}

View File

@ -17,12 +17,10 @@ import android.view.ContextMenu.ContextMenuInfo;
import android.view.LayoutInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.AdapterView.AdapterContextMenuInfo;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;
@ -293,7 +291,7 @@ public class OfflineFeedCategoriesFragment extends BaseFeedlistFragment implemen
tu.setVisibility((cursor.getInt(cursor.getColumnIndex("unread")) > 0) ? View.VISIBLE : View.INVISIBLE);
}
ImageButton ib = (ImageButton) v.findViewById(R.id.feed_menu_button);
/*ImageButton ib = (ImageButton) v.findViewById(R.id.feed_menu_button);
if (ib != null) {
ib.setOnClickListener(new OnClickListener() {
@ -302,7 +300,7 @@ public class OfflineFeedCategoriesFragment extends BaseFeedlistFragment implemen
getActivity().openContextMenu(v);
}
});
}
} */
return v;

View File

@ -20,7 +20,6 @@ import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.AdapterView.AdapterContextMenuInfo;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ImageButton;
import android.widget.ListView;
import android.widget.TextView;
@ -313,7 +312,7 @@ public class OfflineFeedsFragment extends BaseFeedlistFragment implements OnItem
tu.setVisibility((cursor.getInt(cursor.getColumnIndex("unread")) > 0) ? View.VISIBLE : View.INVISIBLE);
}
ImageButton ib = (ImageButton) v.findViewById(R.id.feed_menu_button);
/*ImageButton ib = (ImageButton) v.findViewById(R.id.feed_menu_button);
if (ib != null) {
ib.setOnClickListener(new OnClickListener() {
@ -322,7 +321,7 @@ public class OfflineFeedsFragment extends BaseFeedlistFragment implements OnItem
getActivity().openContextMenu(v);
}
});
}
}*/
return v;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 165 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 325 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 171 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 400 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 432 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 245 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 501 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 590 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 797 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 950 B

View File

@ -48,7 +48,7 @@
android:textColor="?unreadCounterColor"
android:textSize="14sp" />
<ImageButton
<!-- <ImageButton
android:id="@+id/feed_menu_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@ -56,6 +56,6 @@
android:background="@null"
android:paddingLeft="8dp"
android:visibility="gone"
android:src="@drawable/ic_action_overflow" />
android:src="?ic_dots_vertical" /> -->
</LinearLayout>

View File

@ -50,7 +50,7 @@
android:textColor="?unreadCounterColor"
android:textSize="14sp" />
<ImageButton
<!-- <ImageButton
android:id="@+id/feed_menu_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@ -58,6 +58,6 @@
android:background="@null"
android:paddingLeft="8dp"
android:visibility="gone"
android:src="@drawable/ic_action_overflow" />
android:src="?ic_dots_vertical" /> -->
</LinearLayout>

View File

@ -178,11 +178,11 @@
android:id="@+id/article_menu_button"
android:background="@drawable/ripple"
android:layout_width="wrap_content"
android:layout_height="16dp"
android:layout_height="24dp"
android:layout_weight="0"
android:paddingLeft="4dp"
android:paddingRight="4dp"
android:src="@drawable/ic_action_overflow" />
android:src="?ic_dots_vertical" />
</LinearLayout>
</TableRow>
</TableLayout>

View File

@ -180,11 +180,11 @@
android:id="@+id/article_menu_button"
android:background="@drawable/ripple"
android:layout_width="wrap_content"
android:layout_height="16dp"
android:layout_height="24dp"
android:layout_weight="0"
android:paddingLeft="4dp"
android:paddingRight="4dp"
android:src="@drawable/ic_action_overflow" />
android:src="?ic_dots_vertical" />
</LinearLayout>
</TableRow>
</TableLayout>

View File

@ -10,7 +10,7 @@
android:background="?android:colorBackground"
android:fitsSystemWindows="true"
android:layout_width="match_parent"
android:layout_height="502dp"
android:layout_height="match_parent"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_alignParentBottom="true"

View File

@ -43,6 +43,7 @@
<attr name="ic_archive" format="reference" />
<attr name="ic_coffee" format="reference" />
<attr name="ic_folder_outline" format="reference" />
<attr name="ic_dots_vertical" format="reference" />
<declare-styleable name="ScrimInsetsView">
<attr format="reference|color" name="insetForeground">
</attr></declare-styleable>

View File

@ -56,6 +56,7 @@
<item name="ic_archive">@drawable/ic_archive_dark</item>
<item name="ic_coffee">@drawable/ic_coffee_dark</item>
<item name="ic_folder_outline">@drawable/ic_folder_outline_dark</item>
<item name="ic_dots_vertical">@drawable/ic_dots_vertical_dark</item>
</style>
<style name="DarkTheme.Base" parent="Theme.AppCompat.NoActionBar">
@ -113,6 +114,7 @@
<item name="ic_archive">@drawable/ic_archive</item>
<item name="ic_coffee">@drawable/ic_coffee</item>
<item name="ic_folder_outline">@drawable/ic_folder_outline</item>
<item name="ic_dots_vertical">@drawable/ic_dots_vertical</item>
</style>
<style name="DarkDialogTheme" parent="android:Theme"></style>