This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--On--> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item> | |
<shape | |
android:innerRadius="0dp" | |
android:shape="ring" | |
android:thickness="4dp" | |
android:useLevel="false"> | |
<solid android:color="@color/colorPrimary" /> | |
</shape> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ConstraintLayout> | |
<ViewPager/> | |
<TabLayout/> | |
</ConstraintLayout> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
android{ | |
.... | |
androidExtensions { | |
experimental = true | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
tools:context=".MainActivity"> | |
<ImageView | |
android:id="@+id/img" | |
android:layout_width="wrap_content" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RegisterAddressFragment : FragmentViewModel() { | |
private val provinceList = mutableListOf<String>() | |
private lateinit var adpProvince: ArrayAdapter<String> | |
override fun onCreate(savedInstanceState: Bundle?) { | |
/* | |
provinceList sudah terisi dari LiveData | |
*/ | |
adpProvince = ArrayAdapter(context!!, android.R.layout.simple_spinner_item, provinceList) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:id="@+id/formAddressLayout" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<androidx.appcompat.widget.AppCompatSpinner | |
android:id="@+id/spProvince" | |
android:layout_width="0dp" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Intractor implements Contract.Intractor{ | |
private Contract.Presenter presenter; | |
private IAuthenticJogja mService; | |
private IAuthenticJogja mServiceTester; | |
public Intractor(Contract.Presenter presenter) { | |
this.presenter = presenter; | |
mService = Common.createService(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Contract { | |
public interface Presenter{ | |
void getEvent(); | |
void getCraft(); | |
void getCulinnary(int id); | |
void getLanguange(int id); | |
void getCategory(); | |
void getCategoryLanguage(); | |
void getTrending(); | |
void onFinishCall(ArrayList list); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface IAuthenticJogja { | |
@GET("events") | |
Call<ArrayList<Event>> getEventList(); | |
@GET("crafts") | |
Call<ArrayList<Craft>> getCraftList(); | |
@GET("category_foods") | |
Call<ArrayList<CategoryFood>> getCategory(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class RetrofitClient { | |
private static Retrofit retrofit = null; | |
public static String BASE_URL = ""; | |
public static Retrofit getClient(String url) { | |
retrofit = new Retrofit.Builder().baseUrl(BASE_URL) | |
.addConverterFactory(GsonConverterFactory.create()) | |
.build(); | |
return retrofit; |