New spinner style
This commit is contained in:
parent
50671907ba
commit
8b75cac9d8
@ -80,7 +80,7 @@ import java.util.Objects;
|
|||||||
* Author M M Arif
|
* Author M M Arif
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class IssueDetailActivity extends AppCompatActivity {
|
public class IssueDetailActivity extends BaseActivity {
|
||||||
|
|
||||||
public ImageView closeActivity;
|
public ImageView closeActivity;
|
||||||
private IssueCommentsAdapter adapter;
|
private IssueCommentsAdapter adapter;
|
||||||
@ -100,10 +100,14 @@ public class IssueDetailActivity extends AppCompatActivity {
|
|||||||
private LinearLayout assigneesLayout;
|
private LinearLayout assigneesLayout;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected int getLayoutResourceId(){
|
||||||
|
return R.layout.activity_issue_detail;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onCreate(Bundle savedInstanceState) {
|
||||||
|
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
setContentView(R.layout.activity_issue_detail);
|
|
||||||
|
|
||||||
final TinyDB tinyDb = new TinyDB(getApplicationContext());
|
final TinyDB tinyDb = new TinyDB(getApplicationContext());
|
||||||
|
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
|
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||||
<item>
|
<item>
|
||||||
<shape
|
<shape>
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
|
|
||||||
<solid
|
<solid
|
||||||
android:color="@color/inputBackground">
|
android:color="@color/inputBackground">
|
||||||
|
21
app/src/main/res/drawable/shape_dropdown.xml
Normal file
21
app/src/main/res/drawable/shape_dropdown.xml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<shape
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:shape="rectangle">
|
||||||
|
|
||||||
|
<solid
|
||||||
|
android:color="?attr/inputBackgroundColor">
|
||||||
|
</solid>
|
||||||
|
|
||||||
|
<corners
|
||||||
|
android:radius="3dp">
|
||||||
|
</corners>
|
||||||
|
|
||||||
|
<padding
|
||||||
|
android:top="0dp"
|
||||||
|
android:right="0dp"
|
||||||
|
android:left="5dp"
|
||||||
|
android:bottom="0dp">
|
||||||
|
</padding>
|
||||||
|
|
||||||
|
</shape>
|
@ -63,17 +63,26 @@
|
|||||||
android:textColor="?attr/primaryTextColor"
|
android:textColor="?attr/primaryTextColor"
|
||||||
android:textSize="16sp" />
|
android:textSize="16sp" />
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="@drawable/shape_dropdown"
|
||||||
|
android:layout_marginTop="10dp"
|
||||||
|
android:layout_marginBottom="10dp" >
|
||||||
|
|
||||||
<Spinner
|
<Spinner
|
||||||
android:id="@+id/ownerSpinner"
|
android:id="@+id/ownerSpinner"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:spinnerMode="dropdown"
|
android:spinnerMode="dropdown"
|
||||||
android:layout_marginTop="10dp"
|
android:layout_marginTop="5dp"
|
||||||
android:layout_marginBottom="10dp"
|
android:layout_marginBottom="5dp"
|
||||||
android:paddingLeft="5dp"
|
android:paddingLeft="5dp"
|
||||||
android:paddingRight="5dp"
|
android:paddingRight="5dp"
|
||||||
android:paddingStart="5dp" />
|
android:paddingStart="5dp" />
|
||||||
|
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
@ -139,7 +148,6 @@
|
|||||||
android:checked="true"
|
android:checked="true"
|
||||||
android:textSize="16sp"
|
android:textSize="16sp"
|
||||||
android:layout_marginTop="10dp"
|
android:layout_marginTop="10dp"
|
||||||
|
|
||||||
android:textColor="?attr/primaryTextColor"/>
|
android:textColor="?attr/primaryTextColor"/>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
|
@ -6,5 +6,5 @@
|
|||||||
android:padding="10dp"
|
android:padding="10dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:ellipsize="marquee"
|
android:ellipsize="marquee"
|
||||||
android:background="@color/colorPrimary"
|
android:background="?attr/primaryBackgroundColor"
|
||||||
android:textColor="@color/colorWhite"/>
|
android:textColor="?attr/primaryTextColor"/>
|
||||||
|
@ -5,4 +5,4 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:textSize="16sp"
|
android:textSize="16sp"
|
||||||
android:textColor="@color/colorWhite" />
|
android:textColor="@color/darkGreen" />
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
|
|
||||||
|
<!-- Dark theme - default -->
|
||||||
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
|
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
|
||||||
<item name="android:statusBarColor">@color/colorPrimary</item>
|
<item name="android:statusBarColor">@color/colorPrimary</item>
|
||||||
<item name="android:windowBackground">@color/colorPrimary</item>
|
<item name="android:windowBackground">@color/colorPrimary</item>
|
||||||
@ -13,6 +14,7 @@
|
|||||||
<item name="checkboxStyle">@style/AppThemeCheckBoxStyle</item>
|
<item name="checkboxStyle">@style/AppThemeCheckBoxStyle</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<!-- Light theme -->
|
||||||
<style name="AppThemeLight" parent="Theme.AppCompat.Light.NoActionBar">
|
<style name="AppThemeLight" parent="Theme.AppCompat.Light.NoActionBar">
|
||||||
<item name="android:statusBarColor">@color/colorPrimary</item>
|
<item name="android:statusBarColor">@color/colorPrimary</item>
|
||||||
<item name="android:windowBackground">@color/lightThemeBackground</item>
|
<item name="android:windowBackground">@color/lightThemeBackground</item>
|
||||||
@ -25,7 +27,6 @@
|
|||||||
<item name="checkboxStyle">@style/AppThemeLightCheckBoxStyle</item>
|
<item name="checkboxStyle">@style/AppThemeLightCheckBoxStyle</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
||||||
<style name="AppThemeLightCheckBoxStyle" parent="Base.Widget.AppCompat.CompoundButton.CheckBox">
|
<style name="AppThemeLightCheckBoxStyle" parent="Base.Widget.AppCompat.CompoundButton.CheckBox">
|
||||||
<item name="buttonTint">@color/colorDarkGreen</item>
|
<item name="buttonTint">@color/colorDarkGreen</item>
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user