Skip to content

Instantly share code, notes, and snippets.

View thalissondev-xx's full-sized avatar

Thalisson Estrela thalissondev-xx

View GitHub Profile
public View getView(int position, View convertView, ViewGroup parent) {
ViewHolder holder;
// Pega os objetos do item da determinada posicao
String km = ((HashMap<String, String>) adaptador.getItem(position)).get("km").toString().trim();
String imagem = ((HashMap<String, String>) adaptador.getItem(position)).get("ivEmpresa").toString().trim();
String preco = ((HashMap<String, String>) adaptador.getItem(position)).get("precoCarga").toString().trim();
if (convertView == null) {
ID EMPRESA ORIGEM DESTINO CARGA
9122 TADEU TRANSPORTES Guarulhos Betim autopeças
12134 CHARQUEADAS TRANSPORTES Guarulhos Conselheiro Lafaiete FERRO, 5 TON
10102 TRANSNAIA Guarulhos Belo Horizonte BAU OU SIDER.
13207 DANI LOG AGÊNCIA Guarulhos Belo Horizonte DIVERSOS
9765 MELHOR LOGÍSTICA Guarulhos Belo Horizonte COMPLEMENTO
11738 RD EXPRESS Guarulhos Contagem linha marrom
13598 PREMIEX Guarulhos Belo Horizonte chapa de aço
13913 LPA ADC Guarulhos João Monlevade tubos de ferro.
/usr/include/php5/Zend/zend.h:283:15: warning: comma at end of enumerator list [-Wpedantic]
FAILURE = -1, /* this MUST stay a negative number, or it may affect functions! */
^
In file included from /tmp/pear/temp/cassandra/php_cassandra.h:455:0,
from /tmp/pear/temp/cassandra/php_cassandra.c:17:
/tmp/pear/temp/cassandra/php_cassandra_types.h:119:6: warning: ISO C90 doesn't support unnamed structs/unions [-Wpedantic]
};
^
/tmp/pear/temp/cassandra/php_cassandra_types.h:120:4: warning: ISO C90 doesn't support unnamed structs/unions [-Wpedantic]
};
OkHttpClient.Builder httpClient = new OkHttpClient.Builder();
httpClient.addNetworkInterceptor(new AddHeaderInterceptor(activity, action, version));
Retrofit retrofit = new Retrofit.Builder()
.addCallAdapterFactory(RxJavaCallAdapterFactory.create())
.addConverterFactory(GsonConverterFactory.create())
.baseUrl(ServiceFretebras.SERVICE_ENDPOINT)
.build();
Class test