parent
85f75336ef
commit
534135d41b
@ -0,0 +1,18 @@ |
||||
package com.wallet.crypto.trustapp.ui; |
||||
|
||||
import android.os.Bundle; |
||||
import android.support.annotation.Nullable; |
||||
|
||||
import com.wallet.crypto.trustapp.R; |
||||
|
||||
public class AddAccountActivity extends BaseActivity { |
||||
|
||||
@Override |
||||
protected void onCreate(@Nullable Bundle savedInstanceState) { |
||||
super.onCreate(savedInstanceState); |
||||
|
||||
setContentView(R.layout.activity_add_account); |
||||
|
||||
|
||||
} |
||||
} |
@ -0,0 +1,8 @@ |
||||
package com.wallet.crypto.trustapp.viewmodel; |
||||
|
||||
public class CreateAccountViewModel extends BaseViewModel { |
||||
|
||||
public CreateAccountViewModel() { |
||||
|
||||
} |
||||
} |
@ -0,0 +1,19 @@ |
||||
package com.wallet.crypto.trustapp.viewmodel; |
||||
|
||||
|
||||
import android.arch.lifecycle.ViewModel; |
||||
import android.arch.lifecycle.ViewModelProvider; |
||||
import android.support.annotation.NonNull; |
||||
|
||||
public class CreateAccountViewModelFactory implements ViewModelProvider.Factory { |
||||
|
||||
public CreateAccountViewModelFactory() { |
||||
|
||||
} |
||||
|
||||
@NonNull |
||||
@Override |
||||
public <T extends ViewModel> T create(@NonNull Class<T> modelClass) { |
||||
return (T) new CreateAccountViewModel(); |
||||
} |
||||
} |
@ -0,0 +1,10 @@ |
||||
<ripple |
||||
xmlns:android="http://schemas.android.com/apk/res/android" |
||||
android:color="@color/colorPrimary" |
||||
> |
||||
<item android:id="@android:id/mask"> |
||||
<shape android:shape="rectangle"> |
||||
<solid android:color="@color/colorPrimaryDark" /> |
||||
</shape> |
||||
</item> |
||||
</ripple> |
@ -0,0 +1,41 @@ |
||||
<FrameLayout |
||||
xmlns:android="http://schemas.android.com/apk/res/android" |
||||
android:orientation="vertical" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="match_parent" |
||||
> |
||||
<include layout="@layout/layout_simple_toolbar" /> |
||||
<LinearLayout |
||||
xmlns:android="http://schemas.android.com/apk/res/android" |
||||
android:orientation="vertical" |
||||
android:padding="@dimen/big_padding" |
||||
android:layout_marginTop="?actionBarSize" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="match_parent" |
||||
> |
||||
<Button |
||||
android:id="@+id/create_account_action" |
||||
android:text="@string/action_sign_in" |
||||
android:background="@drawable/bg_ripple_primary_color" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
/> |
||||
<TextView |
||||
android:text="@string/already_have_account" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginTop="@dimen/normal_margin" |
||||
/> |
||||
|
||||
<Button |
||||
android:id="@+id/import_account_action" |
||||
style="@style/Widget.AppCompat.Button" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginTop="16dp" |
||||
android:text="@string/action_import" |
||||
/> |
||||
|
||||
</LinearLayout> |
||||
</FrameLayout> |
||||
|
Loading…
Reference in new issue