This file contains 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 | |
================================================================================================================================== | |
xml | |
================================================================================================================================== | |
<FrameLayout | |
android:id="@+id/flPlaceHolder" | |
android:layout_width="match_parent" | |
android:layout_height="0dp" | |
android:layout_weight="7"/> | |
================================================================================================================================= |
This file contains 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
package dsbmobile.com.drokasa.liquidacion.activity; | |
import android.content.Context; | |
import android.support.v4.view.ViewPager; | |
import android.util.AttributeSet; | |
import android.view.MotionEvent; | |
/** | |
* Created by giova on 1/24/2018. | |
*/ |
This file contains 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
bankList.add(0, new BancoBean("000", "Seleccione Banco")); | |
ArrayAdapter<BancoBean> dataAdapter = new ArrayAdapter<BancoBean>(getBaseContext(), android.R.layout.simple_spinner_item, bankList); | |
dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_item); | |
spBanks.setAdapter(dataAdapter); | |
class implements AdapterView.OnItemSelectedListener |
This file contains 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 | |
=================================================================================================================================== | |
<?xml version="1.0" encoding="utf-8"?> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item android:top="8dp" android:bottom="8dp"> | |
<shape> | |
<solid android:color="@android:color/white" /> | |
<stroke | |
android:width="0.1dp" | |
android:color="@color/color_primary" /> |
This file contains 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 | |
================================================================================================================================== | |
package dsbmobile.com.drokasa.ui.dialog; | |
import android.app.AlertDialog; | |
import android.app.DatePickerDialog; | |
import android.app.Dialog; | |
import android.app.DialogFragment; | |
import android.os.Bundle; |
This file contains 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 | |
================================================================================================================================= | |
================================================================================================================================= | |
FRAGMENT ADAPTER | |
================================================================================================================================= | |
package dsbmobile.com.drokasa.liquidacion.adapter; | |
import android.content.Context; | |
import android.content.res.Resources; |
This file contains 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 | |
=================================================================================================================================== | |
ADAPTER | |
=================================================================================================================================== | |
public class DocumentAdapter extends RecyclerView.Adapter<DocumentAdapter.ViewHolder>{ | |
private List<DocumentoBean> items; | |
public DocumentAdapter(List<DocumentoBean> items){ |
This file contains 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 | |
=================================================================================================================================== | |
viewpager.setAdapter(new FragmentPagerAdapter(getSupportFragmentManager(), getBaseContext())); | |
slidingTabs.setupWithViewPager(viewpager); | |
=================================================================================================================================== | |
xml | |
=================================================================================================================================== | |
<android.support.design.widget.TabLayout | |
android:id="@+id/sliding_tabs" |
This file contains 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 | |
=================================================================================================================================== | |
setSupportActionBar(tbDocumento); | |
ActionBar actBar = getSupportActionBar(); | |
if (actBar != null) { | |
actBar.setDisplayHomeAsUpEnabled(true); | |
actBar.setIcon(R.drawable.ic_shopping_cart); | |
actBar.setHomeAsUpIndicator(R.drawable.ic_arrow_back); | |
actBar.setTitle("Editar Documento"); |
NewerOlder